import request from '@/utils/request'

// 查询包装列表
export function listProductPack(query) {
  return request({
    url: '/supplier/productPack/list',
    method: 'get',
    params: query
  })
}

// 查询包装详细
export function getProductPack(packId) {
  return request({
    url: '/supplier/productPack/' + packId,
    method: 'get'
  })
}


// 查询包装详细
export function getProductId(productId) {
  return request({
    url: '/supplier/productPack/productId/' + productId,
    method: 'get'
  })
}

// 新增包装
export function addProductPack(data) {
  return request({
    url: '/supplier/productPack',
    method: 'post',
    data: data
  })
}

// 修改包装
export function updateProductPack(data) {
  return request({
    url: '/supplier/productPack',
    method: 'put',
    data: data
  })
}

// 删除包装
export function delProductPack(packId) {
  return request({
    url: '/supplier/productPack/' + packId,
    method: 'delete'
  })
}

// 导出包装
export function exportProductPack(query) {
  return request({
    url: '/supplier/productPack/export',
    method: 'get',
    params: query
  })
}